import request from '@/utils/request'

// 查询设备定值列表
export function listDevice_setting(query) {
  return request({
    url: '/property/device_setting/list',
    method: 'get',
    params: query
  })
}

// 查询设备定值详细
export function getDevice_setting(id) {
  return request({
    url: '/property/device_setting/' + id,
    method: 'get'
  })
}

// 新增设备定值
export function addDevice_setting(data) {
  return request({
    url: '/property/device_setting',
    method: 'post',
    data: data
  })
}

// 修改设备定值
export function updateDevice_setting(data) {
  return request({
    url: '/property/device_setting',
    method: 'put',
    data: data
  })
}

// 删除设备定值
export function delDevice_setting(id) {
  return request({
    url: '/property/device_setting/' + id,
    method: 'delete'
  })
}
